package com.lagou.edu.factory;

import com.lagou.edu.service.TransferService;
import com.lagou.edu.service.impl.TransferServiceImpl;

/**
 * 创建bean的三种方式
 */
public class CreateBeanMethod {

    public static TransferService getStaticTransferService(){
        return new TransferServiceImpl();
    }

    public TransferService getInstanceMethodTransferService(){
        return new TransferServiceImpl();
    }
}
